# 创建类别名称到类别id的映射字典
label_to_id = {
    "normal.":1,
    "back.":2,
    "buffer_overflow.":3,
    "ftp_write.":4,
    "guess_passwd.":5,
    "imap.":6,
    "ipsweep.":7,
    "land.": 8,
    "loadmodule.": 9,
    "multihop.": 10,
    "neptune.": 11,
    "nmap.": 12,
    "perl.": 13,
    "phf.": 14,
    "pod.": 15,
    "portsweep.": 16,
    "rootkit.": 17,
    "satan.": 18,
    "smurf.": 19,
    "spy.": 20,
    "teardrop.": 21,
    "warezclient.": 22,
    "warezmaster.": 23
}

print(label_to_id["teardrop"])